<!DOCTYPE html>
	<head>
		<meta charset="utf-8"/>
		<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
		<title>Text</title>
		<script src="js/jquery-1.8.2.min.js"></script>
		<link rel="stylesheet" href="js/jquery.mobile-1.2.1.min.css">
		<script src="js/jquery.mobile-1.2.1.js"></script>
		<link rel="stylesheet" href="js/main.css">
		<script type="text/javascript" src="../js/jsapi.js"></script>
		<script src="js/javascript.js"></script>
		<script src="js/chart.js"></script>	
		<script>
			$(document).ready(function(){
				console.log(localStorage.getItem('token'));
				console.log(localStorage.getItem('key'));
				var key = localStorage.getItem('key');
				for(var i=0;i<=key;i++){
					var id = localStorage.getItem(('id'+i));
					var name = localStorage.getItem(('name'+i));
	//				console.log(localStorage.getItem(('id'+i)) + " " +localStorage.getItem(('name'+i)));
					console.log(id + " " + name);
					$('#tenant').append($("<option></option>").attr("value", id).text(name));
				}						
			});
			
	

			

		</script>
	</head>
	<body>
<!--功能頁-->
		<div data-role="page" id='home'>
			<div data-role="header" data-position="fixed">
				<h1>Text</h1>
			</div>
			<div data-role="content" >
				<select id = 'tenant'>
				</select>	
				<div id ="choice_tenant" >
					<input type="button"  id="choice_tenant1" data-theme="b" value="確定"/>
				</div>		
				<div id="result">
					
				</div>				
				<table data-role="table">
					<tr>
						<td>
							<a href="#Overview" data-role="button" data-corners='false' class='btn'>Overview</a>	
<!--							<a href="#Dialogs" data-rel="popup" data-role="button" data-corners='false' class="btn">Overview</a>		-->																
						</td>
						<td>
							<a href="app_test_connection.php" data-role="button" data-corners='false' class='btn' data-ajax="false">檢測連線</a>	
						</td>						
					</tr>
					<tr>
						<td>
							<a href="#" data-role="button" data-corners='false' class='btn'>登出</a>												
						</td>
						<td>
							<a href="#" data-role="button" data-corners='false' class='btn'>text</a>	
						</td>						
					</tr>					
				</table>	
			</div>		
			<div data-role="footer" data-position="fixed">
				<h1>Text</h1>
			</div>
		</div>
		
<!--overview-->
		<div data-role="page" id='Overview'>
			<div data-role="header" data-position="fixed">
				<h1>Overview</h1>
				<a data-icon="grid" href='index.php'>功能表</a>
				<a data-icon="info" href='#'>tenant name</a>	
			</div>
			<div data-role="content" >
				<table width='100%' class='tb'>
					<tr>
						<td width='50%'>
							<div id="result"></div>
							<div id="chart_div" class='div' width='50%' height='30%'></div>
						</td>
						<td width='50%'>
							<div id="chart_div2" class='div' width='50%' height='30%'></div>
						</td>						
					</tr>
					<tr>
						<td>
							<div id="chart_div3"></div>
						</td>
						<td>
							<div id="chart_div4"></div>
						</td>						
					</tr>
					<tr>
						<td>
							<div id="chart_div5"></div>
						</td>
						<td>
							<div id="chart_div6"></div>
						</td>						
					</tr>
					<tr>
						<td>
							<div id="chart_div7"></div>
						</td>
						<td>
							<div></div>
						</td>						
					</tr>					
				</table>	
			</div>		
			<div data-role="footer" data-position="fixed">
				<h1>Overview</h1>
			</div>
		</div>	
<!--Overview_Detail-->	
		<div data-role="page" id='Overview_Detail'>
			<div data-role="header" data-position="fixed" >
				<a data-icon="back" href='#Overview'>back</a>
				<h1>Overview_Detail</h1>
			</div>
			<div data-role="content" >

			</div>		
			<div data-role="footer" data-position="fixed">
				<h1>Overview_Detail</h1>
			</div>
		</div>	
	</body>
</html>